package util

import (
	"bufio"
	"fmt"
	"os"
	"remote-go/server/data"
)

// ReadLine 函数等待命令行输入,返回字符串
func ReadLine() string {
	buf := bufio.NewReader(os.Stdin)
	lin, _, err := buf.ReadLine()
	if err != nil {
		fmt.Println(data.RED, "[!] Error to Read Line!")
	}
	return string(lin)
}
